package com.luchao.springcloudproviderdept.mapper;

import com.luchao.springcloudapi.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DeptMapper {
    boolean addDept(Dept dept);

    Dept getById(@Param("deptno") long id);

    List<Dept> getlist();
}
